﻿using System.Data;
using System.Drawing;
using System;

namespace Home.Haushalt.Lib.Element
{
    /// <summary>
    /// 
    /// </summary>
    [ElementExtension("Support")]
    public class Column : ElementBase
    {
        #region CONSTANTS
        public new static readonly Type ElementType = typeof(Column);

        /// <summary></summary>
        public class Fields
        {
            public const string Table = "tbl";
            public const string Name = "name";
            public const string Field = "field";
            public const string ValueList = "vl";
            public const string Width = "width";
            public const string Sort = "sort";
            public const string Format = "format";
            public const string Visible = "visible";
            public const string Editable = "editable";
            public const string Formula = "formula";
            public const string Align = "align";

            public const string AlignValueCenter = "center";
            public const string AlignValueLeft = "left";
            public const string AlignValueRight = "right";
        }
        #endregion CONSTANTS

        /// <summary>
        /// 
        /// </summary>
        public Column():base() { }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="parentDataRow"></param>
        public Column(DataRow parentDataRow) : base(parentDataRow) { }

    }
}
